package com.woldier.filesystem.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author woldier
 * @version 1.0
 * @description hadoop配置文件自动配置
 * @date 2023/3/23 16:49
 **/
@Configuration
@ConfigurationProperties(prefix = "hadoop")
@Data
public class HadoopConfigProperties {
    /**
     * url
     */
    private String url = "localhost:8020";
    /**
     * 用户
     */
    private String user = "root";

    /**
     * 冗余数量
     */
    private String replication = "3";

    private Pool pool;

    @Data
    class Pool {
        private int poolSize;
    }
}
